import request from '@/utils/request'
export default {
    //分页查询
    getPageList(page, limit, searchObj) {
        return request({
                url: '/admin/${entity?uncap_first}/list/'+page+'/'+limit,
                method: 'get',
                params: searchObj
        })
    },
    //删除${entity}
    removeById(id) {
        return request({
            url: '/admin/${entity?uncap_first}/remove/'+id,
            method: 'delete'
        })
    },
    //新增${entity}等级
    save(${entity?uncap_first}) {
        return request({
            url: '/admin/${entity?uncap_first}/save',
            method: 'post',
            data: ${entity?uncap_first}
        })
    },
    //根据id查询${entity}
    getById(id) {
        return request({
            url: '/admin/${entity?uncap_first}/'+id,
            method: 'get'
        })
    },
    //修改${entity}
    updateById(${entity?uncap_first}) {
        return request({
            url: '/admin/${entity?uncap_first}/update',
            method: 'put',
            data: ${entity?uncap_first}
        })
    }
}